﻿using System;
using System.Collections.Generic;
using System.Text;
using DOMercury.Interfaces;

namespace DOMercury
{
    [DOMercuryPlugIn("Description of Plugin - Not really used anywhere")]
    public class SkinnableFormProvider : IDOMercuryUserInterfaceProvider
    {
        private DOMercury.Forms.Mercury frm;

        #region IDOMercuryUserInterfaceProvider Members

        public IDOMercuryUserInterface Interface
        {
            get 
            {
                if (frm == null)
                {
                    frm = new DOMercury.Forms.Mercury();
                }
                return frm;
            }
        }

        public void RestartInterface()
        {
            frm = new DOMercury.Forms.Mercury();
        }

        public string Name
        {
            get { return "SkinnableForm(Original DOMercury Interface)"; }
        }

        #endregion
    }
}
